class Foo {
    static a = 1

    method() {
        class Foo { }
    }
}